GET FILE = "Mar_09_AMP_IAT_summary.sav" .
*This selects subjects prior to 8am on election day.
SELECT IF (subject < 1065850) .
EXECUTE .

*filter definitions: .
COMPUTE IAT_filter$ = (ntrials=96) & (pct_300<10) & (pct_2K<20) & (error_pct<35) & (aveltncy<1700) .
COMPUTE amp_filter$ = (race_amp_d >= -4.97 AND race_amp_d <= 5.07) .
COMPUTE combined_filter$ = (amp_filter$=1 AND iat_filter$=1) .
EXECUTE .

MATCH FILES FILE = * / FILE = "10_filters.sav" / BY subject .
EXECUTE .

COMPUTE filter$ = (VoteMcCain ge 0) & (combined_filter$=1 & citizen=1 & age ge 18) 
       & (race_th_df_d > -10 & attrace_d > -10 & symb_racism_d > -10 & conservatism_d > -10) .  
FREQUENCIES filter$ .

FILTER BY filter$ .
CORRELATIONS VoteMcCain race_IATall_d race_amp_d race_th_df_d attrace_d symb_racism_d conservatism_d .
MEANS D_biep_all amp race_th_dif attrace conservatism symb_racism BY VoteMcCain .

*Describe demographics of sample .
COMPUTE edu_achievement = NUMBER(education, F2.0) .
COMPUTE religiosity = NUMBER(religionid, F2.0) .
COMPUTE omb_ethnic = NUMBER(ethnicityomb, F2.0) .
COMPUTE academic_major = NUMBER(major, F2.0) .
COMPUTE omb_race = NUMBER(raceomb, F2.0) .

DESCRIPTIVES edu_achievement religiosity omb_ethnic academic_major omb_race .

VALUE LABELS omb_ethnic 
 1 "Hispanic or Latino"
 2 "Not Hispanic or Latino"
 3 "Unknown" .

VALUE LABELS edu_achievement
 1 "Elementary School"
 2 "Junior High"
 3 "Some High School"
 4 "High School Graduate"
 5 "Some College"
 6 "Associate's Degree"
 7 "Bachelor's Degree"
 8 "Some Graduate School"
 9 "Master's Degree"
 10 "J.D."
 11 "M.D."
 12 "Ph.D."
 13 "Other Advanced Degree"
 14 "M.B.A." .

VALUE LABELS omb_race
 1 "American Indian/Alaska Native"
 2 "East Asian"
 3 "South Asian"
 4 "Native Hawaiian or other Pacific Islander"
 5 "Black or African American"
 6 "White"
 7 "More than one race - Black/White"
 8 "More than one race - Other"
 9 "Other or Unknown"  .

VALUE LABELS religiosity
 1 "Not at all Religious"
 2 "Somewhat Religious"
 3 "Moderately Religious"
 4 "Very Religious" .

VALUE LABELS academic_major 
 1 "Biological sciences/life sciences"
 2 "Business"
 3 "Communications"
 4 "Computer and information sciences"
 5 "Education"
 6 "Engineering, mathematics, physical sciences/technologies"
 7 "Health professions or related sciences"
 8 "Humanities/liberal arts"
 9 "Law or legal studies"
 10 "Psychology"
 11 "Social sciences or history"
 12 "Visual or performing arts"
 13 "Other" .

FREQUENCIES sex omb_race omb_ethnic edu_achievement academic_major religion religiosity .
